import 'package:flutter/material.dart';
import 'package:flutter_native_splash/flutter_native_splash.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'components/business/com_vr_hdr.dart';

void main() {
  // WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
  // FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
  // FlutterNativeSplash.remove();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: const Size(360, 690),
      minTextAdapt: true,
      splitScreenMode: true,
      child: MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(body: Center(child: Text("主页"))),
        // home: ComVrHdr(),
        // home: ComAppView(),
        // home: ComWebViewDisplay(),
        // home: ComLivePlayer1(),
        // home: ComLivePlayer(),
        // 音乐播放器
        // home: ComMusicPlayer(),
        // 3d three js
        // home: WebglMaterialsPhysicalTransmissionAlpha(),
        // home: Com3dThreeJsModel(),
        // 3d
        // home: Com3dModel(),
        // 骨架屏
        // home: ComSkeletonPage(),
        // 包含一些动画的页面
        // home: ComAnimationPage(),
        // home: ComCard(),
        // 卡片
        // home: ComCard(),
        // 侧边栏
        // home: ComColumnMenu(),
        // 表格
        // home: ComTable(),
      ),
    );
  }
}
